package com.bysc.userservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author kkk
 * @since 2024-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="NoticeContent对象", description="")
public class NoticeContent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "通知ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    @ApiModelProperty(value = "发送通知用户ID")
    private String userId;
    @ApiModelProperty(value = "被通知用户ID")
    private String noticedUserId;
    @ApiModelProperty(value = "评论Id")
    private String commentId;
    @ApiModelProperty(value = "通知内容")
    private String content;
    @ApiModelProperty(value = "通知类型(0-系统通知，1-协会通知,2-点赞通知，3-收藏通知，4-评论通知)")
    private Integer type;

    @ApiModelProperty(value = "内容类型(0-帖子，1-评论，2-回复，3-学习资料)")
    private Integer commentType;

    @ApiModelProperty(value = "是否已读（0-未读，1-已读）")
    @TableField(fill = FieldFill.INSERT)
    private Integer isRead;

    @ApiModelProperty(value = "是否删除（0-未删除，1已删除）")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
